import request from '@/utils/request'

export function getList(data) {
  return request({
    url: `/autoAdvice/getList`,
    method: 'post',
    data
  })
}

export function adviceList(patientId,adviceType) {
  return request({
    url: `/autoAdvice/adviceList/${patientId}/${adviceType}`,
    method: 'get',
  })
}

export function add(data) {
  return request({
    url: '/autoAdvice/add',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/autoAdvice/update',
    method: 'post',
    data
  })
}

export function remove(id) {
  return request({
    url: `/autoAdvice/delete/${id}`,
    method: 'delete',
  })
}

export function disabled(id, disabled) {
  return request({
    url: `/autoAdvice/disabled/${id}/${disabled}`,
    method: 'get',
  })
}
